<?php

defined('APPLICATION_PATH') or define('APPLICATION_PATH', dirname(__FILE__));
defined('BASE_PATH') or define('BASE_PATH', dirname(APPLICATION_PATH));
defined('APPLICATION_ENV') or define('APPLICATION_ENV', 'development');

$paths = array(
    APPLICATION_PATH . '/library',
    get_include_path(),
    APPLICATION_PATH . '/models'
);

set_include_path(implode(PATH_SEPARATOR, $paths));

require_once 'Zend/Application.php';

$app = new Zend_Application(
    APPLICATION_ENV,
    APPLICATION_PATH . '/configs/application.ini'
);

$app->bootstrap();

unset($paths);